import * as api from "@/api"
import rootReducer from "./reducers/rootReducer"
import { configureStore } from "@reduxjs/toolkit"
let rootStore = configureStore({
  reducer: rootReducer,
  middleware: function (getDefaultMiddleware: any) {
    return getDefaultMiddleware({
      thunk: {
        extraArgument:api
      }
    })
  }
})


export default rootStore